package com.oa.works.config.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * 封装token
 * @date 2021/10/13 17:23
 * @author Qin
 */
public class OAuth2Token implements AuthenticationToken {
    private String token;

    public OAuth2Token(String token){
        this.token = token;
    }

    @Override
    public Object getPrincipal(){
        return token;
    }

    @Override
    public Object getCredentials(){
        return token;
    }

}
